package com.manage.system.context;

import org.springframework.jdbc.datasource.lookup.AbstractRoutingDataSource;

/**
 * @Author liuzhao
 * @Date 2024/1/20 11:48
 * @Content
 * @Version 1.0
 */
public class DynamicDataSource extends AbstractRoutingDataSource {
    @Override
    protected Object determineCurrentLookupKey() {
        return DataSourceContextHolder.getDataSource();
    }
}
